package top.hardsnail.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author Tre'
 * @date 2021/1/12 18:47
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "t_epm")
public class User {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    private String username;
    private String password;
    private Integer sex;
    private String email;
    private String mobile;
    @TableField(value = "dept_no")
    private Integer deptNo;
    private Date birthday;
    private Date createTime;
    private User createUser;
    private Date updateTime;
    private User updateUser;
    @TableField(value = "user_photo")
    private String userPhoto;
}
